package com.ruoyi.gateway.config.properties;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "security.csrf")
public class RefererProperty {
	
	//是否启用referer检查
    private Boolean enabled;

    //支持跨站点列表
    private List<String> excludes;
    
    //访问地址白名单，常用来配置swagger或一些静态资源配置
    private List<String> includes;
    
    
	public Boolean getEnabled() {
		return enabled;
	}
	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}
	public List<String> getExcludes() {
		return excludes;
	}
	public void setExcludes(List<String> excludes) {
		this.excludes = excludes;
	}
	public List<String> getIncludes() {
		return includes;
	}
	public void setIncludes(List<String> includes) {
		this.includes = includes;
	}
}
